<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.io.File"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Webcam</title>
</head>
<body>
<h2>Webcam stream</h2>
<embed src="http://145.76.18.93:1337/stream.wmv"  width="320" height="240"/><br>

<%
File recorddir = new File("webapps\\webfarm\\Recordings");
String[] files = recorddir.list();
if (files == null) {
	out.print("files = null");
    // Either dir does not exist or is not a directory
} else {
    for (int i=0; i < files.length; i++) {
        // Get filename of file or directory
        String filename = files[i];
        out.println("<a href=\"Recordings\\" + filename + "\">" +  filename + "</a><br>");
    }
}
%>
</body>
</html>